package net.lainiao.morethread.Chapter1.demo6;

import java.util.concurrent.TimeUnit;

/**
 * Created by Administrator on 2017/2/27.
 */
public class UnsafeMain {
    public static void main(String[] args) {
        UnsafeTask task=new UnsafeTask();
        for (int i = 0; i < 10; i++) {
            Thread thread=new Thread(new UnsafeTask());
            thread.start();
            try {
                TimeUnit.SECONDS.sleep(2);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

        }
    }
}
